package se581.banker.event;


/**
 * This class wraps the Event and is used to pass between
 * the layers.  This was mainly used to pass messages/status
 * between the layers.  
 * 
 * It also contains the start time variable used for timings.
 * 
 * @author mmichalak
 *
 */
public class TrackerEventWrapper {

	TrackerEvent event = null;
	String serverReturn = null;
	boolean isServerSuccess = true;
	
	long startTime = 0;
	
	
	public TrackerEventWrapper(TrackerEvent ev) {
		super();
		this.event = ev;
	}
	
	public TrackerEvent getEvent() {
		return event;
	}
	public void setEvent(TrackerEvent event) {
		this.event = event;
	}
	public String getServerReturn() {
		return serverReturn;
	}
	public void setServerReturn(String serverReturn) {
		this.serverReturn = serverReturn;
	}

	@Override
	public String toString() {
		return "TrackerEventWrapper [event=" + event + ", serverReturn="
				+ serverReturn + ", isServerSuccess=" + isServerSuccess + "]";
	}

	public boolean isServerSuccess() {
		return isServerSuccess;
	}

	public void setServerSuccess(boolean isServerSuccess) {
		this.isServerSuccess = isServerSuccess;
	}

	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
}
